import React from "react";
import { RouterProvider } from "react-router-dom";
import { ConfigProvider } from "antd";
import zhCN from "antd/locale/zh_CN";
import { router } from "./router";
import { UserProvider } from "./contexts/UserContext";
import "normalize.css";
import "./styles/global.scss";

const App: React.FC = () => {
  return (
    <ConfigProvider locale={zhCN}>
      <UserProvider>
        <RouterProvider router={router} />
      </UserProvider>
    </ConfigProvider>
  );
};

export default App;
